<?php


/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

/**
 * @package	
 */
class HelpDeskViewHelpDesk extends HelpDeskView 
{
	/**
	 * (non-PHPdoc)
	 * @see v1_00/com_helpdesk/site/HelpDeskView#display($tpl)
	 */
	function display($tpl=null) 
	{
		$mainframe	= HelpDeskConfig::getApplication();
		$user 		= HelpDeskConfig::getUser();
		$database 	= HelpDeskConfig::getDBO();
		$model 		= $this->getModel();
		$app 		= HelpDeskConfig::getApplication();

		// get Itemid
			global $Itemid;
			$this->assignRef( 'Itemid', $Itemid );
			
		$link = 'index.php?option='._THISCOMPONENT."&view=tickets";
		$link .= "&Itemid={$Itemid}";
		$link = HelpDeskRoute::_( $link, false );
		$app->redirect( $link );
		return;
    }
}